<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <h5>{$parent.name}床位列表<gt name="parent.bunk_id" value="0">, <a class="text-warning" href="{:U('bunk/index', array('pid'=>$parent['pid']))}"><i class="fa fa-reply" aria-hidden="true">返回上级</i></a></gt></h5>

<!--    <form action="{:U('bunk/bunkimport')}" method="post" enctype="multipart/form-data">-->
<!--    <p>请选择要导入的CSV文件：-->
<!--    <input type="file" class="btn" name="file" style="height: 18px;line-height: 18px;padding:4px 12px 12px 12px">-->
<!--    <input type="submit" class="btn" value="导入CSV">-->
<!--    </form>-->

    <form method="post" class="js-ajax-form" action="{:U('bunk/listorders')}">
        <table class="table table-hover table-bordered table-list mtop20">
            <thead>
            <tr>
                <th width="120">排序</th>
                <th>ID</th>
                <th>名称</th>
                <th>可使用权月</th>
                <th>已使用权月</th>
                <th width="180">{:L('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="list" item="bunk">
                <tr>
                    <td><input name='listorders[{$bunk.bunk_id}]' class="input input-order mr5" type='text' size='8' value='{$bunk.listorder}'></td>
                    <td>{$bunk.bunk_id}</td>
                    <td>{$bunk.name}</td>
                    <td>{$bunk.totaluse}</td>
                    <td>{$bunk.used}</td>
                    <td>
                        <lt name="bunk.type" value="5">
                            <a href="{:U('bunk/index', array('pid'=>$bunk['bunk_id']))}">下级管理</a> |
                            <a href="{:U('bunk/add', array('pid'=>$bunk['bunk_id']))}">添加下级</a> |
                        </lt>
                        <a href="{:U('bunk/edit', array('bunk_id'=>$bunk['bunk_id']))}">编辑</a> |
                        <a class="js-ajax-delete" href="{:U('bunk/delete', array('bunk_id'=>$bunk['bunk_id']))}">删除</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="table-actions">
            <button class="btn btn-primary btn-small js-ajax-submit" type="submit">{:L('SORT')}</button>
        </div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>